@extends('layouts.app')
@section('title', '注册')

@section('styles')
  <link rel="stylesheet" href="/static/layuiadmin/style/login.css" media="all">
@endsection

@section('content')
  <div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login" style="display: none;">
    <div class="layadmin-user-login-main">
      <div class="layadmin-user-login-box layadmin-user-login-header">
        <h2>LaraBBS</h2>
        <p>基于Laravel+Layui的BBS系统</p>
      </div>
      <form action="{{route('register')}}" method='POST' class="layadmin-user-login-box layadmin-user-login-body layui-form">
        {{ csrf_field() }}
        <div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-username" for="LAY-user-login-nickname"></label>
          <input type="text" name="name" id="LAY-user-login-nickname" lay-verify="required" placeholder="昵称" class="layui-input" value="{{ old('name') }}" autocomplete="off">
        </div>
        <div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-website" for="LAY-user-login-email"></label>
          <input type="text" name="email" id="LAY-user-login-email" lay-verify="email" placeholder="邮箱" class="layui-input" value="{{ old('email') }}" autocomplete="off">
        </div>
<!--         <div class="layui-form-item">
          <div class="layui-row">
            <div class="layui-col-xs7">
              <label class="layadmin-user-login-icon layui-icon layui-icon-vercode" for="LAY-user-login-vercode"></label>
              <input type="text" name="vercode" id="LAY-user-login-vercode" lay-verify="" placeholder="验证码" class="layui-input">
            </div>
            <div class="layui-col-xs5">
              <div style="margin-left: 10px;">
                <button type="button" class="layui-btn layui-btn-primary layui-btn-fluid" id="LAY-user-getsmscode">获取验证码</button>
              </div>
            </div>
          </div>
        </div> -->
        <div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-password" for="LAY-user-login-password"></label>
          <input type="password" name="password" id="LAY-user-login-password" lay-verify="required" placeholder="密码" class="layui-input" value="{{ old('password') }}">
        </div>
        <div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-password" for="LAY-user-login-repass"></label>
          <input type="password" name="password_confirmation" id="LAY-user-login-repass" lay-verify="required" placeholder="确认密码" class="layui-input" value="{{ old('password_confirmation') }}">
        </div>
        <div class="layui-form-item">
          <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="LAY-user-reg-submit">注 册</button>
        </div>
        <div class="layui-trans layui-form-item layadmin-user-login-other">
          <a href="{{route('login')}}" class="layadmin-user-jump-change layadmin-link layui-hide-xs">用已有帐号登入</a>
        </div>
      </form>
    </div>

  </div>
@endsection

@section('js')
<script>
  layui.use(['form'], function(){
    var form = layui.form;
  });
</script>
@endsection
